/**
 * @(#)AjaxResult.java, 2018/2/7.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.meta.vo.common;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public class AjaxResult extends JsonResult {

    private static final long serialVersionUID = 5451316194035153776L;

    public AjaxResult() {
        super();
    }

    public AjaxResult(ResponseCode responseCode) {
        super(responseCode);
    }

    public AjaxResult(ResponseCode responseCode, String errorCode) {
        super(responseCode, errorCode);
    }

    public AjaxResult(ResponseCode responseCode, ErrorCode errorCode) {
        super(responseCode);
        if (errorCode != null) {
            put(ERROR_CODE, errorCode.name());
        }
    }
}
